using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace EditorExtension
{
    public class IMGUIRuntimeExample : MonoBehaviour
    {
        private GUILayoutAPI mGUILayoutAPI = new GUILayoutAPI();
        private GUI_API mGUI_API = new GUI_API();
        private int mIndex = 0;
        private void OnGUI()
        {
            mIndex = GUILayout.Toolbar(mIndex, new[] { "GUILayoutAPI", "GUI_API"});
            if (mIndex == 0)
            {
                mGUILayoutAPI.Draw();
            }
            else
            {   
                mGUI_API.Draw();
            }
        }
    }
}

